jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Thu, 30 Jan 2025 23:01:36 +0000 (00:01 +0100)
committerMoritz Muehlenhoff <jmm@debian.org>
Thu, 30 Jan 2025 23:01:36 +0000 (00:01 +0100)
commit8e995e8e41e6e654ac1300b6b73186249de7445b
tree8290903e87ed55dfb31280681821b26c7edb5e04
parent38460857a5b3283a5fa9cf6d80612e2dd560b433
jlink: Hash of module differs to expected hash recorded in java.base

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=944738
Forwarded: not-needed

The cause is the use of dh_strip_nondeterminism late in the build
process.  This reorganises the jmod files, which in turn changes their
SHA256 checksums.  This would not be a problem, except that the
checksums are saved in java.base.jmod *before* the use of
dh_strip_nondeterminism.  Performing this stripping immediately after
each jmod file is created results in the checksums being consistent
throughout.

Gbp-Pq: Name reproducible-build-jmod.diff
make/CreateJmods.gmk